package com.ssy.lingxi.platform.template.service.repository;

import com.ssy.lingxi.platform.template.service.entity.door.Seo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SeoRepository extends JpaRepository<Seo, Long>, JpaSpecificationExecutor<Seo> {

    List<Seo> findAllByDoorTypeAndDoorIdAndStatus(Integer doorType, Long doorId, Integer status);

    List<Seo> findAllByDoorIdAndDoorTypeAndType(Long doorId, Integer doorType, Integer type);

    List<Seo> findAllByDoorIdAndDoorTypeAndTypeAndIdNot(Long doorId, Integer doorType, Integer type, Long id);
}
